package com.springcloud.generate;

import com.springcloud.generate.param.CodeGenerateParam;
import com.springcloud.generate.service.CodeGenerateService;

public class MysqlGenerator {

    /**
     * 作者姓名
     */
    public static String authorName = "hzl";

    /**
     * 业务名称
     */
    public static String busName = "order";

    /**
     * 数据库表名
     */
    public static String tableName = "t_order";

    /**
     * 代码包名
     */
    public static String packageName = "com.springcloud.order";

    /**
     * 是否去除前缀
     */
    public static boolean isTablePrefix = true;

    public static void main(String[] args) {
        //配置文件
        CodeGenerateParam codeGenerateParam = new CodeGenerateParam();
        codeGenerateParam.setAuthorName(authorName);
        codeGenerateParam.setTableName(tableName);

        codeGenerateParam.setPackageName(packageName);
        codeGenerateParam.setBusName(busName);

        CodeGenerateService codeGenerateService = new CodeGenerateService();

        codeGenerateService.runLocal(codeGenerateParam);
    }
}
